

def test():
    maxCoin = 999000
    ll = (1-0.105)

    print("送普通礼物主播获得："+str(maxCoin*0.55))
    print("正常主播分成比："+str((maxCoin*0.55)/maxCoin))

    num = 0
    value = maxCoin
    for i in range(1, 1000):
        maxCoin = maxCoin*ll
        # print("本次还剩下金额："+str(maxCoin))
        if(maxCoin<99):
            break
        num += 1
        value += maxCoin

    print("产生的主播流水："+str(value))
    print("送幸运礼物礼物主播获得："+str(value*0.1*0.55))
    print("幸运礼物主播分成比："+str((value*0.1*0.55)/999000))

    print("总共循环："+str(num))


def rule(input, out):
    # input = 346
    # out = 100
    minc = 0.0466
    maxc = 0.1374


    print("================"+str(input-out))
    print("==========minc======"+str(input*minc))
    print("=========maxc======="+str(input*maxc))
    if((input-out)<input*minc):
        print("加入黑名单")
    if((input-out)>input*maxc):
        print("加入白名单")


def rule1(input, out):
    # input = 346
    # out = 317
    def1 = 0.1

    print("================"+str(input-out))
    print("================"+str(input*def1))
    if((input-out)>input*def1):
        print("移除黑名单")
    if((input-out)<input*def1):
        print("移除白名单")

if __name__ == '__main__':
    # test()
    # input = 118800
    # out = 99000
    # input = 101600
    # out = 96710
    input = 166500
    out = 239500

    print("==================比率："+str(out/input))

    rule1(input, out)
    rule(input, out)
    # for i in range(1, 110):
    #     print("======产出："+str(i))
    #     rule1(317)
    print("======")